/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class ArduinoCompatibleDevice {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '010080040';
    }

    get categoryName() {
        return '\u0041\u0072\u0064\u0075\u0069\u006e\u006f\u5f00\u53d1\u677f';
    }

    setDevMessage(params) {
        return command({
            method: 'setDevMessage',
            methodId: 'peH32f9L',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default ArduinoCompatibleDevice;
